package com.jxt.mina.tools;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolCodecFactory;
import org.apache.mina.filter.codec.ProtocolDecoder;
import org.apache.mina.filter.codec.ProtocolEncoder;
/**
 * 
 * @author qh
 *
 */
public class CodecFactory implements ProtocolCodecFactory{

	public ProtocolDecoder getDecoder(IoSession arg0) throws Exception {
		return new CommandDecoder();
	}

	public ProtocolEncoder getEncoder(IoSession arg0) throws Exception {
		return new CodecEncoder();
	}

}
